# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=netcdf-cxx4
pkgver=4.3.1
pkgrel=1
pkgdesc="NetCDF C++ bindings"
url="https://www.unidata.ucar.edu/software/netcdf/"
arch="all !s390x"  # limited by netcdf
license="Apache-2.0"
makedepends="
	hdf5-dev
	netcdf-dev
	"
depends_dev="
	netcdf-dev
	"
subpackages="
	$pkgname-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/Unidata/netcdf-cxx4/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_guess
}

build() {
	./configure \
		--prefix=/usr \
		--enable-shared \
		--enable-extra-tests \
		--enable-large-file-tests
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	make -j1 check
}
sha512sums="404711eb80d5e78968c0f6cbdcb08855a2778d7fd94e7ee94bdc9d1cd72848ac3327613c6437a7634349f26bc463b950092a2999abb34ddab0a47ad185547d22  netcdf-cxx4-4.3.1.tar.gz"
